package com.hzncc.flowable_diboot.delivery.vo;

import com.diboot.core.binding.annotation.BindDict;
import com.diboot.core.binding.annotation.BindEntity;
import com.hzncc.flowable_diboot.delivery.entity.DeliveryProduct;
import com.hzncc.flowable_diboot.delivery.entity.DeliveryRegister;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
public class DeliveryFormVO extends DeliveryRegister {

    private static final long serialVersionUID = 1533834933941128375L;
    
    @BindDict(type = "reviewCategory",field = "reviewCategory")
    private String reviewCategoryLabel;
    
    @BindDict(type = "yesNo",field = "delaied")
    private String delaiedLabel;

    @BindDict(type = "yesNo",field = "invoiced")
    private String invoicedLabel;

    @BindDict(type = "completeSet", field = "completeSet")
    private String completeSetLabel;

    @BindEntity(entity = DeliveryProduct.class,condition = "this.delivery_code = delivery_code",deepBind = true)
    DeliveryProductDetailVO product;


}
